import useAxios from "@/api/Request";

// 获取验证码
export const verificationCode = (data: any, key: any) => useAxios({
    api: '/jeecg-boot/sys/randomImage/' + key,
    method: 'get',
    params: data
})
// 登录
export const login = (parameter: any) => useAxios({
    api: '/jeecg-boot/sys/login',
    method: 'post',
    data: parameter
})
// 用户登录退出
export const logout = () => useAxios({
    api: '/jeecg-boot/sys/logout',
    method: 'post',
})
/**
 * 修改用户信息
*/
export const addUserinfo = (parameter: any) => useAxios({
    api: '/jeecg-boot/userinfo/add',
    method: 'post',
    data: parameter

})
